/* =========================================
   MODERN UI DESIGN TOKENS (Variables)
   ========================================= */
:root {
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 12px 24px -4px rgba(0, 0, 0, 0.08), 0 4px 12px -2px rgba(0, 0, 0, 0.04);
  --border-subtle: 1px solid rgba(0, 0, 0, 0.06);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================
   BASE & COMPONENT STYLES
   ========================================= */

.sh-product-card {
  border: var(--border-subtle) !important;
  border-radius: var(--radius-md) !important;
  background-color: #ffffff; /* Cleaner than off-gray */
  transition: var(--transition-smooth) !important;
}

.sh-product-card:hover {
  box-shadow: var(--shadow-hover) !important;
  transform: translateY(-4px); /* Modern floating effect */
  border-color: transparent !important; /* Hide border when shadow takes over */
}

.pr-outlined-button {
  background-color: transparent;
  border: 1.5px solid var(--button-main);
  border-radius: var(--radius-sm);
  color: var(--button-main);
  cursor: pointer;
  display: block;
  font-size: 13px; /* Slightly larger for readability */
  font-weight: 600;
  height: 34px; /* Better touch target size */
  min-width: 30px;
  padding: 6px 12px;
  text-align: center;
  width: 100%;
  transition: var(--transition-smooth);
}

.pr-outlined-button:hover {
  background-color: var(--button-main);
  color: var(--button-contrast-text);
  box-shadow: var(--shadow-soft);
}

.sh-solid-button,
.sh-product-plus-minus-button {
  border-radius: var(--radius-sm) !important;
  transition: var(--transition-smooth);
}

/* =========================================
   TAGS & BADGES
   ========================================= */

.sh-product-card-discount-tag {
  font-weight: 500 !important;
  border-radius: var(--radius-md) 0px var(--radius-md) 0px !important;
  top: 0px !important;
  left: 0px !important;
  right: auto !important;
  box-shadow: var(--shadow-soft);
}

.sh-product-discount-tag {
  font-weight: 500 !important;
  border-radius: var(--radius-sm) !important;
}

/* =========================================
   CATEGORY CARDS
   ========================================= */

.sh-category-card > a > div {
  padding: 4px !important;
  border: var(--border-subtle) !important;
  border-radius: var(--radius-md) !important;
  transition: var(--transition-smooth) !important;
}

.sh-category-card > a > div:hover {
  border: 1px solid rgba(41, 165, 108, 0.3) !important; /* Softer green border */
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

/* Modern, ultra-light pastel backgrounds */
.sh-category-card:nth-child(3n-2) > a > div {
  background-color: #f0fdf4 !important; /* Modern soft green */
}
.sh-category-card:nth-child(3n-1) > a > div {
  background-color: #fefce8 !important; /* Modern soft yellow */
}
.sh-category-card:nth-child(3n) > a > div {
  background-color: #fff1f2 !important; /* Modern soft rose/orange */
}

.sh-category-card > a > div > p {
  line-height: 1.5;
  font-size: 15px;
  font-weight: 500;
  color: #333333;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 44px;
  margin-top: 4px;
}

.cat-card {
  padding: 4px;
}

.cat-card-title {
  font-weight: 600 !important;
  letter-spacing: -0.01em; /* Modern typography tightening */
}

/* =========================================
   PRODUCT CARDS & COLLECTIONS
   ========================================= */

.pr-long-card {
  padding: 0px;
}

.pr-card-content {
  padding: 8px 12px;
}

.pr-long-card .pr-image {
  aspect-ratio: var(--pr-image-aspect-ratio, 1 / 1);
  transition: var(--transition-smooth);
  border-radius: var(--radius-sm);
  padding: 4px;
}

.prod-collection-container .view-all,
.sh-row-title-divider,
.swiper-button-next,
.swiper-button-prev,
.section-heading::after {
  display: none !important;
}

/* =========================================
   BANNERS & SECTIONS
   ========================================= */

.banner .collection-image {
  width: 100%;
  border-radius: var(--radius-lg);
  padding: 2px;
  box-shadow: var(--shadow-soft);
}

.banner-collection,
.sh-banner-collection-card,
.sh-mini-banner-collection-card {
  padding: 0px 8px;
}

.BannerCollection-component {
  padding: 8px 2px !important;
}

.sh-mini-banner-collection-card {
  padding: 0px 4px !important;
}

.sh-banner-img-ctn {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 8px;
  box-shadow: var(--shadow-soft);
}

/* Grouped Section Titles */
.section-title-2 {
  margin: 0px 8px;
  border-radius: var(--radius-md) var(--radius-md) 0px 0px;
}

.section-title-3, 
.section-title-4 {
  margin: 12px 8px 0px 8px;
  border-radius: var(--radius-md) var(--radius-md) 0px 0px;
}

/* Grouped Sections */
.section-2, 
.section-3, 
.section-4 {
  padding: 0px !important;
  margin: 0px 8px;
}

.section-2 {
  border-radius: var(--radius-md);
}

.section-3, 
.section-4 {
  border-radius: 0px 0px var(--radius-md) var(--radius-md);
}

.section-heading-container {
  justify-content: left;
  align-items: baseline;
}

.section-heading {
  font-weight: 700;
  letter-spacing: -0.02em; /* Modern heading style */
}

.section-heading-viewall {
  display: flex !important;
  align-items: center;
  font-size: 14px !important;
  font-weight: 600;
  color: #007bff !important;
  transition: var(--transition-smooth);
}

.section-heading-viewall:hover {
  opacity: 0.8;
}

.section-heading-viewall::after {
  content: "➔";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-left: 6px;
  background-color: #007bff;
  color: #ffffff;
  font-size: 10px;
  border-radius: 50%; /* Modern circular arrow badge */
  transition: var(--transition-smooth); 
}

.section-heading-viewall:hover::after {
  transform: translateX(4px); /* Arrow slides right on hover */
}

/* =========================================
   MISCELLANEOUS UTILITIES
   ========================================= */

.three-col-footer__footer {
  background-color: var(--footer-main);
  color: var(--footer-contrast-text);
  display: none;
}

.grid-cols-2 {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

/* =========================================
   MEDIA QUERIES
   ========================================= */

@media screen and (max-width: 640px) {
  .section {
    border-radius: var(--radius-md);
    margin: 8px 6px;
  }
  .section-heading-container {
    margin: 16px 0px 12px 0px;
  }
}

@media screen and (max-width: 600px) {
  .sh-category-card > a > div > p {
    line-height: 1.4;
    font-size: 13px;
    min-height: 36px;
  }
  .pr-title {
    font-size: 14px;
    line-height: 1.3;
    font-weight: 700;
  }
  .cat-card {
    padding: 2px !important;
  }
  .cat-card-title {
    font-size: 12px;
    margin-top: 6px;
  }
}

@media screen and (max-width: 480px) {
  .product-card {
    width: calc(36% - 5px) !important;
    margin-right: 5px !important;
  }
}